using System;
using System.Collections.Generic;
using System.Text;
using Objects;
using DAL;

namespace BAL
{
    public class BALMauThe
    {
        BALMauThe _dal;
        public BALMauThe()
        {
            _dal = new BALMauThe();
        }

        public static int Insert_MauThe(int IdChuDe,String TenMauThe,String DuongDan,string GhiChu,int Status, int SapXep)
        {
            DALMauThe _dal = new DALMauThe();
            return _dal.Insert_MauThe(IdChuDe ,TenMauThe, DuongDan,GhiChu, Status, SapXep);
        }

        public static int Update_MauThe(int id, int IdChuDe, String TenMauThe, String DuongDan,String GhiChu, int Status, int SapXep)
        {
            DALMauThe _dal = new DALMauThe();
            return _dal.Update_MauThe(id, IdChuDe,TenMauThe,DuongDan,GhiChu,Status, SapXep);
        }

        public static int Delete_MauThe(int id)
        {
            DALMauThe _dal = new DALMauThe();
            return _dal.Delete_MauThe(id);
        }

        public static List<MauThe> GetAllItem()
        {
            DALMauThe _dal = new DALMauThe();
            return _dal.GetAllItem();
        }

        public static List<MauThe> GetByIdChuDe(int idChuDe)
        {
           DALMauThe _dal = new DALMauThe();
           return _dal.GetByIdChuDe(idChuDe);
        }

        public static MauThe GetById(int Id)
        {
            DALMauThe _dal = new DALMauThe();
            return _dal.GetById(Id);
        }
    }
}
